import axios from '../request';
import { GoodSaveInfo } from '../model/goods';
interface PageInfo {
  value?: string;
  pageNo: number;
  pageSize: number;
}
// 获取邀请数据
export const goodsSave = (projectId: number | string, parmas: GoodSaveInfo) => {
  return axios.post<any>(`api/goods/${projectId}`, parmas);
};
// 删除商品
export const goodsDelete = (projectId: number | string, goodsId: number) => {
  return axios.delete<any>(`api/goods/${projectId}/${goodsId}`, {});
};
//
export const goodsList = (projectId: number | string, parmas: PageInfo) => {
  return axios.get<any>(`api/goods/list/${projectId}`, parmas);
};
